<!DOCTYPE html>
<html  lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>商品管理</title>
    <th:block th:include="~{common/common::commonHead}"/>
    <script th:src="@{/js/goods/innerGoodsList.js}"></script>
</head>
<!-- /Head -->
<!-- Body -->
<body>
<!-- Page Body -->
<div class="page-body">
    <div class="panel panel-primary">
        <div class="panel-heading bg-blue">
            商品列表
        </div>
        <div class="widget-body grid-table">
            <div class="toolbar">
                <div class="fl-left">
                    <button data-menu-id="010101" data-click="goodsPublish();" class="btn btn-blue shiny">取消屏蔽商品</button>
                    <button data-menu-id="010102" data-click="downGoods();" class="btn btn-danger shiny">屏蔽商品</button>
                </div>
                <div class="toolbar-right">
                    <div class="fl-right">
                        <div class="btn-group" role="group">
                            <button data-click="toggleFilter()" class="btn btn-default text-center">
                                <i class="fa fa-filter fa-fw"></i>
                            </button>
                            <button data-click="refresh('goodsList')" class="btn btn-default">
                                <i class="fa fa-refresh fa-fw"></i>
                            </button>
                            <button data-click="download('goodsList')" class="btn btn-default">
                                <i class="fa fa-download fa-fw"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div id="goodsList"></div>
            <form class="filter search-content form-horizontal" role="form">
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 商品名称 </label>
                        <div class="col-xs-8">
                            <div class="iconic-input right">
                                <input name="goodsName" type="text" class="form-control spinner"
                                       placeholder="商品名称">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 商品类型 </label>
                        <div class="col-xs-8">
                            <select name="goodsType" class="form-control" data-url="goods/listGoodsType" data-value-field="id" data-text-field="typeName">
                                <option value="-1">全部</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12">
                    <button type="button" data-click="hideFilter()" class="btn btn-default pull-right">取消</button>
                    <button type="button" data-click="submitFilter('goodsList')" class="btn btn-blue pull-right">确定</button>
                </div>
            </form>
        </div><!-- end of panel -->
    </div>
    <!-- /Page Container -->
    <!-- Main Container -->

</div>
</body>
<!--  /Body -->
</html>
